package com.athengzhi.springCloud.service;

import com.athengzhi.springCloud.dao.PaymentDao;
import com.athengzhi.springCloud.entities.Payment;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Package: com.athengzhi.springCloud.service
 * @ClassName: PaymentServiceImpl
 * @Author: lhz
 * @CreateTime: 2023/4/17 18:04
 * @Description:
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
